package core;

import java.util.TimerTask;

import exception.ServerDownException;

/**
 * Class that implements the task retrieving topics from data base task.
 */
public class Topics_Task extends TimerTask
{

	@Override
	public void run() 
	{
		try 
		{
			Core.topic().setTopics(Core.getTopics());
		} 
		catch (ServerDownException e) 
		{
			e.printStackTrace();
		}
	}

}
